package com.hgkj.cloud.base.service.impl;

import com.hgkj.cloud.base.dao.SysTestingAnswerMapper;
import com.hgkj.cloud.base.domain.SysTestingAnswer;
import com.hgkj.cloud.base.service.SysTestingAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysTestingAnswerServiceImpl implements SysTestingAnswerService {

    @Autowired
    private SysTestingAnswerMapper sysTestingAnswerMapper;

    @Override
    public List<SysTestingAnswer> getAnswers(Integer questionId) {
        return sysTestingAnswerMapper.getAnswers(questionId);
    }

    @Override
    public int updateAnswer(SysTestingAnswer ta) {
        return sysTestingAnswerMapper.updateAnswer(ta);
    }

    @Override
    public int insertAnswer(SysTestingAnswer answer) {
        return sysTestingAnswerMapper.insertAnswer(answer);
    }

    @Override
    public int deleteAnswers(int qid) {
        return sysTestingAnswerMapper.deleteAnswers(qid);
    }

}
